const {app, BrowserWindow} = require('electron')
const isDev = require('electron-is-dev')

function createWindow() {
  const win = new BrowserWindow({
    width: 800,
    height: 600,
    webPreferences: {
      nodeIntegration: true
    }
  })
  const urlLocation = isDev ? 'http://localhost:3000' : ''
  win.loadURL(urlLocation)
}

app.whenReady().then(createWindow)

